
public class test1 {
    public static void main(String[] args) {
        int[][] arr = new int[][]{{1,2,3,4},
                                  {5,6,7,8},
                                  {9,10,11,12}};
        myprint(arr);
    }

    private static void myprint(int[][] arr) {
        int m =arr.length,n = arr[0].length;
        for(int i =1;i<=m+n-1;i++){
            if(i%2==1){
                for(int j = 0,k = 0;j>=0&&k<n;j--,k++){
//                    if(j)
                }
            }else{

            }
        }
    }
}
